<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="oastaglib" prefix="oas"%>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="<c:url value="/resources/bootstrap/dist/css/bootstrap.min.css" /> ">
    <script type="text/javascript" src="<c:url value="/resources/js/jquery/dist/jquery.min.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/resources/bootstrap/dist/js/bootstrap.min.js"/>"></script>
<meta charset="UTF-8">
<title>请假详情</title>
</head>
<body style="background-color:#eeeeee">
<oas:nav/>
<oas:content>
<div style="background-color:#ffffff; width:90%; margin:0 auto; padding:15px 10px;">
		<h1>请假详情</h1>
		
			请假id:<c:out value="${leave.id}" /> <br/>
			申请人:<c:out value="${leave.applicant.fullName}" /> <br/>
			申请时间:<fmt:formatDate value="${leave.applyDate}"
    							pattern="yyyy-MM-dd HH:mm:ss" /> <br/>
    		请假原因:<c:out value="${leave.type.description}" /> <br/>
    		状态:						
    		<c:if test="${leave.status == 0}">  
    			待审核
    		</c:if>  
    		<c:if test="${leave.status == 1}">  
    			已通过 <br/>
    			处理人:<c:out value="${leave.handler.fullName}" /> <br/>
    			处理时间:<fmt:formatDate value="${leave.handleTime}"
    							pattern="yyyy-MM-dd HH:mm:ss" /> <br/>
    		</c:if> 
    		<c:if test="${leave.status == 2}">  
    			未通过 <br/>
    			处理人:<c:out value="${leave.handler.fullName}" /> <br/>
    			处理时间:<fmt:formatDate value="${leave.handleTime}"
    							pattern="yyyy-MM-dd HH:mm:ss" /> <br/>
    		</c:if> 
    		<a href="<c:url value="/leave/history" />">返回</a>
</div>
</oas:content>
<oas:footer/>
</body>
</html>